import style from 'styled-components'
import logo from '../static/logo.png'
export const HeaderWrapper = style.div`
    position: relative;
    height: 56px;
    border: 1px solid #f0f0f0;    
`
export const Logo = style.div`
    position: absolute;
    top: 0;
    left: 0;
    height: 56px;
    width: 100px;
    background: url(${logo});
    background-size: contain;
`
export const Nav = style.div`
    height: 100%;
    padding-right: 70px;
    box-sizing: border-box;    
    width: 960px;
    margin: 0 auto;
`
export const NavItem = style.div`
    font-size: 17px;
    padding: 0 15px;
    line-height: 56px;
    color: #333;
    &.left{
        float: left
    }
    &.right{
        float: right;
        color: #969696;
    }
    &.active{
        color: #ea6f5a
    }
`
export const SearchWrapper = style.div`
    float: left;
    position: relative;
    .iconfont{
        position: absolute;
        right: 10px;
        top: 20px;
    }
    
`
export const NavSearch = style.input.attrs({
    placeholder: '搜索'
})`
    width: 160px;
    transition: all 0.3s ease;
    padding: 0 30px 0 20px;
    box-sizing: border-box;
    height: 38px;
    margin-top: 9px;
    border: none;
    outline: none;
    border-radius: 19px;
    background: #eee;
    font-size: 14px;
    margin-left: 20px;
    color: #666;
    &::placeholder{
        color: #999;
    }
    &.focus{
        width: 200px;
    }
`
export const SearchInfo = style.div`
    position: absolute;
    left: 0;
    top: 56px;
    width: 240px;
    padding: 0 20px;
    box-shadow:0 0 8px rgba(0, 0, 0, .2);
    background: #fff;
`
export const SearchInfoTitle = style.div`
    margin: 20px 0 15px 0;
    line-height: 20px;
    font-size: 14px;
    color: #969696;
`
export const SearchInfoSwitch = style.span`
    float: right;
    font-size: 13px;
`
export const SearchInfoItem = style.a`
    padding: 0 5px;
    line-height: 20px;
    font-size: 12px;
    border: 1px solid #ddd;
    color: #787878;
    display: block;
    float: left;
    border-raduis: 3px;
    margin: 0 10px 10px 0;
`
export const Adition = style.div`
    position: absolute;
    right: 56px;
    top: 0;
    height: 56px;
`
export const Button = style.div`
    float: right;
    margin-top: 9px;
    line-height: 38px;
    border-radius: 19px;
    border: 1px solid #ec6149;
    margin-right: 20px;
    padding: 0 20px;
    font-size: 14px;
    &.reg{
        background: #ec6149;
        color: #fff;
    }
    &.writting{
       
        color: #ec6149;
    }
`